authWithPassword

inline suspend fun <T : AuthRecord> authWithPassword(collection: String, email: String, password: String, identityField: String? = null, expandRelations: ExpandRelations = ExpandRelations(), fields: ShowFields = ShowFields()): AuthResponse<T>

Authenticate a single auth record by their username/email and password.

Parameters

collection

the ID or name of the auth collection

email

the auth record username, email address or identityField

password

the auth record password

identityField

A specific identity field to use (by default fallbacks to the first matching one).